package com.jt.www.domain.enums.pc;

import org.apache.commons.lang3.StringUtils;

/**
 * 广东营业部 JT0170001 对应的线下产品
 * Created by shaoyn on 2020/08/07.
 */
public enum OfflineGDProductEnum {

    GDXZ("20PR806488", "广东省校（园）方责任保险"),
    GDJZZ("20PR530654", "广东省教职员工校（园）方责任保险"),
    GDSP("20PR191668", "广东省校园食品安全责任保险"),
    GDXC("20PR485549", "广东省校车道路客运承运人责任保险"),
    YDJZZ("20PR872085", "英德市教职员工校（园）方责任保险"),
    GDYE("20PR946629", "广东省学生幼儿平安保险"),
    GDXP("20PR209713", "广东省学生平安保险");

    private String product;
    private String name;

    OfflineGDProductEnum(String product, String name) {
        this.product = product;
        this.name = name;
    }

    public static boolean contains(String product) {
        if (StringUtils.isBlank(product)) {
            return false;
        }
        for (OfflineGDProductEnum offlineGDProductEnum : OfflineGDProductEnum.values()) {
            if (offlineGDProductEnum.product.equals(product)) {
                return true;
            }
        }
        return false;
    }


    public String getProduct() {
        return product;
    }

    public String getName() {
        return name;
    }
}
